package org.achicu.db.rhino;

import org.achicu.db.StorableCollection;
import org.mozilla.javascript.Context;
import org.mozilla.javascript.Delegator;
import org.mozilla.javascript.Scriptable;

public class StorableCollectionConstructor extends Delegator {

	public Object call(Context cx, Scriptable scope, Scriptable thisObj,
			Object[] args) {
		return new StorableCollection();
	}

	
	public Scriptable construct(Context cx, Scriptable scope, Object[] args) {
		return cx.getWrapFactory().wrapAsJavaObject(cx, scope, new StorableCollection(), StorableCollection.class);
	}
	
}
